//
//  CollectionListNewssummaryinfolist.m
//  DJGetPicture
//
//  Created by Gollum on 16/09/26
//  Copyright (c) JSMD. All rights reserved.
//

#import "CollectionListNewssummaryinfolist.h"
#import "CollectionListNewsimageinfolist.h"

@implementation CollectionListNewssummaryinfolist

+ (NSDictionary *)objectClassInArray{
    return @{@"newsImageInfoList" : [CollectionListNewsimageinfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *dataArray = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            CollectionListNewsimageinfolist *data = [CollectionListNewsimageinfolist modelWithDic:dic];
            [dataArray addObject:data];
        }
        _newsImageInfoList = dataArray;
    }
    
}

@end
